<% extends 'base.html' %>
<% block title %>${title}<% endblock %>
<% block body %>
<div class='page'>
    <div class="content">
         <script type="application/javascript"> var state="${state}";var message="${message}";var point_messge="${point_messge}"</script>
         <div class='content-block' ms-visible='no_partner' id="state_success">
            <div class='binding-form-info'><span id="span_message"></span>
            <span id="span_point_messge"></span></div>
        </div>

        <input type="text"  value="${url}"  id="now_url"  style="display: None"  >

        <form  id="sign_out_reason_form" style="display: None" onsubmit="return check_required_input();" >
            <header class="bar bar-nav">
              <h1 class='title'>签出缘由</h1>
            </header>
            <div class="content">
              <div class="list-block">
                <ul>
                  <li>
                    <div class="item-content">
                      <div class="item-media"><i class="icon icon-form-name"></i></div>
                      <div class="item-inner">
                        <div class="item-title label">姓名</div>
                        <div class="item-input">
                          <input type="text" placeholder="姓名" value="${name}" name="user" readonly="readonly" class="disabled">
                        </div>
                      </div>
                    </div>
                  </li>

                  <li>
                    <div class="item-content">
                      <div class="item-media"><i class="icon icon-form-gender"></i></div>
                      <div class="item-inner">
                        <div class="item-title label">外出缘由</div>
                        <div class="item-input">
                          <select placeholder="外出缘由" name="sign_out_reason_list" onchange="SelectOther(this.value)" id="sign_out_reason_list" required='required'>
                            <option value="提前下班">提前下班</option>
                            <option value="拜访客户">拜访客户</option>
                            <option value="请假">请假</option>
                            <option value="因事外出">因事外出</option>
                            <option value="其他">其他</option>
                          </select>
                        </div>
                      </div>
                    </div>
                  </li>

                 <li class="invisible_class" style="display: None" >
                    <div class="item-content" >
                      <div class="item-media"><i class="icon icon-form-password"></i></div>
                      <div class="item-inner">
                        <div class="item-title label">其他缘由</div>
                        <div class="item-input"  >
                          <input name="sign_out_reason" id="sign_out_reason" placeholder="其他缘由"
                                 type="text" />
                        </div>
                      </div>
                    </div>
                </ul>
              </div>
              <div class="content-block">
                <div class="row">
                 <div class="col-20">&nbsp;</div>
                 <div class="col-60">
                  <input type="submit" value="提交" id="button_submit" class="button button-big button-fill button-success" /></div>
                </div>
              </div>
            </div>
            <input type="hidden" placeholder="签到经度" value="${latitude}" name="latitude" id="latitude"  >
             <input type="hidden" placeholder="签到纬度" value="${longitude}" name="longitude"  id="longitude"  >
             <input type="hidden" placeholder="签到时间" value="${sign_out_time}" name="sign_out_time" id="sign_out_time">
        </form>
    </div>
</div>
<% endblock %>
